//
//  UIScrollView+NoDatas.h
//  SheMeasured
//
//  Created by ddkj on 2019/5/8.
//  Copyright © 2019 xmddkj. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface NoDatasView : UIView

@property (nonatomic, strong) UIImageView *icon;
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, assign) BOOL haveIcon;

@end


@interface UIScrollView (NoDatas)

//无数据提示
@property (nonatomic, strong) NoDatasView *placeHolder;
@property (nonatomic, copy) void (^clickBlock)(void);

- (void)showPlaceHolder:(BOOL)show message:(NSString *)message;
- (void)showPlaceHolderWithFrame:(CGRect)frame imageName:(NSString *)imageName message:(NSString *)message clickBlock:(nullable void (^)(void))clickBlock;
- (void)hidePlaceHolder;

@end

NS_ASSUME_NONNULL_END
